public int Insert(OutDocToOrgan_DTO entity) { ODORep.AddInputParameters("@orgID", entity.orgID); ODORep.AddInputParameters("@docID", entity.docID); ODORep.AddInputParameters("@incharge", entity.incharge); ODORep.AddInputParameters("@guid", entity.guid); return(ODORep.IUD("sp_OutDocToOrganization_Insert", CommandType.StoredProcedure)); }
public ActionResult AddOrganization(OutDocToOrgan_DTO entity) { ODTOServ.Insert(entity); return(Json(new { success = true })); }