public async Task <ApiResult> CreateFoods(FoodsCreateDto input) { var entity = new Foods(); entity.CreateOrUpdate(); repository.Add(entity); await unitofWork.CommitAsync(); return(ApiResult.Ok()); }
public async Task <ApiResult> CreateFoods(FoodsCreateDto input) { var entity = new Foods(); entity.CreateOrUpdate(); repository.Add(entity); await unitofWork.CommitAsync(); return(ApiResult.Ok()); }