public ResponseMessage Update(Type entity)
 {
     ResponseMessage response = new ResponseMessage();
     if (_productService.IsTypeAlreadyUsed(entity.Id) == true)
     {
         response.IsError = true;
         response.ErrorCodes.Add(string.Format(GeneralLocalisations.CannotBeEdited, OriginLocalisations.Origin));
         return response;
     }
     _typeRepository.Update(entity);
     return response;
 }
 public void Add(Type entity)
 {
     _typeRepository.Add(entity);
 }