Beispiel #1
0
 public async Task <int> AddSubSubCategory(SubSubCategoryBodyModel subSubCategoryBodyModel)
 {
     try
     {
         return(await _connection.GetConnection.ExecuteAsync(
                    sql : @"[Menu].[Usp_InsertSubSubCategory]",
                    param : subSubCategoryBodyModel,
                    commandType : CommandType.StoredProcedure
                    ));
     }
     catch (Exception exception)
     {
         throw exception;
     }
     finally
     {
         _connection.Dispose();
     }
 }
Beispiel #2
0
 public async Task <int> AddSubSubCategory(SubSubCategoryBodyModel subSubCategoryBodyModel)
 {
     return(await _menuItemReporitory.AddSubSubCategory(subSubCategoryBodyModel));
 }
 public async Task <IHttpActionResult> AddSubSubCategory([FromBody] SubSubCategoryBodyModel SubSubCategoryBodyModel)
 {
     return(Ok(await _menuItemService.AddSubSubCategory(SubSubCategoryBodyModel)));
 }