public FF_BL_VM SaveFF_BL_VM(FF_BL_VM FQV) { if (!FQV.EditFlag) { FQV.FF_BL001_CODE = _CodeRep.GetCodeNew(FQV.CMPYCODE, FQV.FNMBRANCH_CODE, "FF_BL001", "INVJV", "I"); } return(_FF_BLRepo.SaveFF_BL_VM(FQV)); }
public ActionResult saveFFM_BL(FF_BL_VM FBV) { List <SessionListnew> list = Session["SesDet"] as List <SessionListnew>; if (list == null) { return(Redirect("Login/InLogin")); } else { FBV.CMPYCODE = list[0].CmpyCode; FBV.UserName = list[0].user_name; return(Json(_BLService.SaveFF_BL_VM(FBV), JsonRequestBehavior.AllowGet)); } }