public ResponseModel CreateWarrentyPeriod(InvWarrentyPeriod aObj)
 {
     if (aObj.WarrentyPeriodId == 0)
     {
         aObj.CreatedDate = DateTime.Now;
         _aRepository.Insert(aObj);
         _aRepository.Save();
         return(_aModel.Respons(true, "New Warrenty period Details Successfully Saved"));
     }
     else
     {
         _aRepository.Update(aObj);
         _aRepository.Save();
         return(_aModel.Respons(true, " Warrenty period Successfully Updated"));
     }
 }
        public JsonResult CreateWarrentyPeriod(InvWarrentyPeriod aObj)
        {
            var data = _aManager.CreateWarrentyPeriod(aObj);

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