Ejemplo n.º 1
0
 public static Gradera.Grading.DAL.Grade_Category MapToDal(GradingCategoryModel model)
 {
     return new Gradera.Grading.DAL.Grade_Category()
     {
         ClubId = model.ClubId,
         Id = model.Id,
         Name = model.Name
     };
 }
Ejemplo n.º 2
0
 public HttpResponseMessage SaveGradingCategory(GradingCategoryModel category)
 {
     HttpResponseMessage response = new HttpResponseMessage(HttpStatusCode.OK);
     UserPrincipal loggedInUser = (UserPrincipal)HttpContext.Current.User;
     category.ClubId = loggedInUser.AccountSession.ClubId;
     GradingAdminBLL.SaveGradingCategory(GradingCategoryModel.MapToDal(category));
     return response;
 }