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)); } }
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)); } }