Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Problem 9. Call a Stored Procedure
- public static int GetProjectsCountByEmployee(string firstName, string lastName)
- {
- using (SoftUniEntities softUniEntities = new SoftUniEntities())
- {
- var projectsCount = softUniEntities.usp_GetProjectsCountByEmployee(firstName, lastName).FirstOrDefault();
- return projectsCount.Value;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment