Example #1
0
        public int CreateSerial(SerialDTO serialDTO)
        {
            var param = ParametersHelper.CreateFromObject(serialDTO).IncludeOutputId();

            ExecuteSP("USP_Serial_Create", param);
            return(param.GetOutputId());
        }
Example #2
0
        public void EditSerial(int id, SerialDTO serialDTO)
        {
            var param = ParametersHelper.CreateFromObject(serialDTO).IncludeId(id);

            ExecuteSP("USP_Serial_Update", param);
        }
Example #3
0
        public IActionResult GetSerial(int id)
        {
            SerialDTO objectList = _serialsService.GetSerialById(id);

            return(Ok(objectList));
        }