Example #1
0
 public IHttpActionResult CreateNewMenu(Dictionary <string, object> model)
 {
     try
     {
         GenericCURD db       = new GenericCURD();
         bool        hasData  = false;
         object      response = db.Insert(model, DBTable.MENU, out hasData);
         return(ApiResponse(response, hasData));
     }
     catch (Exception ex)
     {
         return(ApiResponse(ex));
     }
 }
Example #2
0
 public IHttpActionResult AddNewMenuToRole(Dictionary <string, object> model)
 {
     try
     {
         GenericCURD db       = new GenericCURD();
         bool        hasData  = false;
         object      response = db.Insert(model, DBTable.MENU_ROLE_RELATIONSHIPS, out hasData);
         return(ApiResponse(response, hasData));
     }
     catch (Exception ex)
     {
         return(ApiResponse(ex));
     }
 }