public int CreateSerial(SerialDTO serialDTO) { var param = ParametersHelper.CreateFromObject(serialDTO).IncludeOutputId(); ExecuteSP("USP_Serial_Create", param); return(param.GetOutputId()); }
public void EditSerial(int id, SerialDTO serialDTO) { var param = ParametersHelper.CreateFromObject(serialDTO).IncludeId(id); ExecuteSP("USP_Serial_Update", param); }
public IActionResult GetSerial(int id) { SerialDTO objectList = _serialsService.GetSerialById(id); return(Ok(objectList)); }