public override object Insert(DataManager dataManager, object data, string key) { var result = _shiftService.AddShifts(new List <ShiftReadEditDto>() { data as ShiftReadEditDto }); return(data); }
public async Task <IActionResult> AddShift([FromBody] List <ShiftReadEditDto> dtos) { return(new ObjectResult(await _shiftService.AddShifts(dtos))); }