public async Task AddFermentabuoyAssignment(FermentabuoyAssignmentDto dto)
 {
     FermentabuoyAssignment entity = new FermentabuoyAssignment()
     {
         Fermentabuoy = dto.Fermentabuoy,
         Batch        = dto.Batch,
         CreatedBy    = dto.CreatedBy,
         Created      = DateTime.Now
     };
     await FermentabuoyAssigmentDataProvider.AddFermentabuoyAssignment(entity);
 }
Beispiel #2
0
        public async Task <IActionResult> Post(FermentabuoyAssignmentDto dto)
        {
            try
            {
                await FermentabuoyAssignmentService.AddFermentabuoyAssignment(dto);

                return(NoContent());
            }
            catch (Exception ex)
            {
                return(StatusCode(StatusCodes.Status500InternalServerError, ex));
            }
        }