public ResponseModel CreateProductWarrenty(InvProductWarrenty aObj)
 {
     if (aObj.ProductWarrentyId == 0)
     {
         aObj.CreatedDate = DateTime.Now;
         _aRepository.Insert(aObj);
         _aRepository.Save();
         return(_aModel.Respons(true, "New Product Warrenty Details Successfully Saved"));
     }
     else
     {
         _aRepository.Update(aObj);
         _aRepository.Save();
         return(_aModel.Respons(true, "Product Warrenty Details Successfully Updated"));
     }
 }
Exemplo n.º 2
0
        public JsonResult CreateProductwarrenty(InvProductWarrenty aObj)
        {
            var data = _aManager.CreateProductWarrenty(aObj);

            return(Json(new { success = data.Status, data }, JsonRequestBehavior.AllowGet));
        }