Exemplo n.º 1
0
 /// <summary>
 /// For Customer
 /// </summary>
 /// <param name="customerId"></param>
 /// <returns></returns>
 public ProfileModel GetCustomerProfile(int customerId)
 {
     using (var db = new EntityContext())
     {
         var source = _customer.GetSingle(db, customerId);
         var result = _customer.AssignCustomerProfile(source);
         return(result);
     }
 }