Venciity

Untitled

Mar 9th, 2015
321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.41 KB | None | 0 0
  1. // Problem 9.   Call a Stored Procedure
  2.         public static int GetProjectsCountByEmployee(string firstName, string lastName)
  3.         {
  4.             using (SoftUniEntities softUniEntities = new SoftUniEntities())
  5.             {
  6.                 var projectsCount = softUniEntities.usp_GetProjectsCountByEmployee(firstName, lastName).FirstOrDefault();
  7.                 return projectsCount.Value;
  8.             }
  9.         }
Advertisement
Add Comment
Please, Sign In to add comment