// POST: MaintenanceServiceController/Create

        public IActionResult Create([FromForm] CreateMaintenanceServiceDto dTO)
        {
            _MaintenanceServiceService.Create(dTO);
            return(Ok(GetRespons()));
        }
Example #2
0
 public async Task <IActionResult> Create([FromBody] MaintenanceServiceCreateDto dto)
 => await GetResponse(async (userId) =>
                      new ApiResponseViewModel(true, "MaintenanceService Created Successfully", await _service.Create(dto, userId)));