/* Create By : Prakash * Create on : 05 May, 2017 * Create for : Delete OtherContract */ public IHttpActionResult OtherContractSearch1(OtherContractSearch SearchParam) { string status = string.Empty; try { OtherContractMaster OtherContract = new OtherContractMaster(); OtherContract.Id = SearchParam.Id; if (OtherContract.Id != 0) { OtherContractMaster mobj_OtherContractMaster = _OtherContractService.GetOtherContractMasterById(OtherContract); mobj_OtherContractMaster.Deactivate = "Y"; mobj_OtherContractMaster.DeactivateBy = SearchParam.DeactivateBy; mobj_OtherContractMaster.DeactivateDate = DateTime.Now; _OtherContractService.DeleteOtherContractMaster(mobj_OtherContractMaster); } status = "OK"; return(Json(status)); } catch (Exception ex) { return(Json(ex.ToString())); } }
public IHttpActionResult OtherContractSerch(OtherContractSearch SearchParam) { if (SearchParam.SessionId == "") { return(Json("NOK")); } else { var status = ""; _OtherContractService.InsertSearchHistory(SearchParam); status = "OK"; return(Json(status)); } }
public void InsertSearchHistory(OtherContractSearch _Search) { _OtherContractSearch.Insert(_Search); }