public IActionResult Update(ProductSupplierAddorUpdateModel model)
        {
            var result = _yachtMerchantProductSupplier.Update(model);

            if (result.IsSuccessStatusCode)
            {
                return(Ok(result));
            }
            return(BadRequest());
        }
 public BaseResponse <bool> Create(ProductSupplierAddorUpdateModel model)
 {
     try
     {
         var entity = new YachtMerchantProductSuppliers();
         entity.InjectFrom(model);
         entity.Deleted          = false;
         entity.CreatedBy        = GetUserGuidId();
         entity.CreatedDate      = DateTime.Now;
         entity.LastModifiedDate = DateTime.Now;
         entity.LastModifiedBy   = GetUserGuidId();
         _context.YachtMerchantProductSuppliers.Add(entity);
         _context.SaveChanges();
         return(BaseResponse <bool> .Success(true));
     }
     catch (Exception ex)
     {
         return(BaseResponse <bool> .InternalServerError(message : ex.Message, fullMsg : ex.StackTrace));
     }
 }