public IResponseDTO EditWorkshopMalfunction(WorkshopMalfunctionVM model)
        {
            try
            {
                var DbWorkshopMalfunction = _mapper.Map <WorkshopMalfunction>(model);
                var entityEntry           = _WorkshopMalfunctionRepositroy.Update(DbWorkshopMalfunction);


                int save = _unitOfWork.Commit();

                if (save == 200)
                {
                    _response.Data     = model;
                    _response.IsPassed = true;
                    _response.Message  = "Ok";
                }
                else
                {
                    _response.Data     = null;
                    _response.IsPassed = false;
                    _response.Message  = "Not saved";
                }
            }
            catch (Exception ex)
            {
                _response.Data     = null;
                _response.IsPassed = false;
                _response.Message  = "Error " + string.Format("{0} - {1} ", ex.Message, ex.InnerException != null ? ex.InnerException.FullMessage() : "");
            }

            return(_response);
        }
        public IResponseDTO UpdateWorkshopMalfunction(WorkshopMalfunctionVM WorkshopMalfunctionVM)
        {
            var depart = _WorkshopMalfunctionServices.EditWorkshopMalfunction(WorkshopMalfunctionVM);

            return(depart);
        }
        public IResponseDTO RemoveWorkshopMalfunction(WorkshopMalfunctionVM WorkshopMalfunctionVM)
        {
            var depart = _WorkshopMalfunctionServices.DeleteWorkshopMalfunction(WorkshopMalfunctionVM);

            return(depart);
        }
        public IResponseDTO postWorkshopMalfunction(WorkshopMalfunctionVM WorkshopMalfunctionVM)
        {
            var depart = _WorkshopMalfunctionServices.PostWorkshopMalfunction(WorkshopMalfunctionVM);

            return(depart);
        }