public Response <EntitySignatureModel> UpdateEntitySignature(EntitySignatureModel entitySignature) { string apiUrl = baseRoute + "UpdateEntitySignature"; var response = _communicationManager.Post <EntitySignatureModel, Response <EntitySignatureModel> >(entitySignature, apiUrl); return(response); }
public Response <EntitySignatureModel> AddEntitySignature(EntitySignatureModel entitySignature) { var signatureRepository = unitOfWork.GetRepository <EntitySignatureModel>(SchemaName.ESignature); List <SqlParameter> procParams = new List <SqlParameter>() { new SqlParameter("EntityID", entitySignature.EntityId), new SqlParameter("SignatureID", entitySignature.SignatureId), new SqlParameter("EntityTypeID", entitySignature.EntityTypeId), new SqlParameter("SignatureTypeID", (object)entitySignature.SignatureTypeId ?? DBNull.Value), new SqlParameter("CredentialID", (object)entitySignature.CredentialID ?? DBNull.Value), new SqlParameter("IsActive", entitySignature.IsActive ?? true), new SqlParameter("ModifiedOn", entitySignature.ModifiedOn ?? DateTime.Now) }; return(signatureRepository.ExecuteNQStoredProc("usp_AddEntitySignatures", procParams, false, true)); }
public static EntitySignatureViewModel ToViewModel(this EntitySignatureModel entity) { if (entity == null) { return(null); } var model = new EntitySignatureViewModel { EntitySignatureId = entity.EntitySignatureId, SignatureId = entity.SignatureId, SignatureTypeId = entity.SignatureTypeId, EntityId = entity.EntityId, EntityTypeId = entity.EntityTypeId, SignatureBlob = Convert.ToBase64String(entity.SignatureBlob), IsActive = entity.IsActive, ModifiedOn = entity.ModifiedOn, ModifiedBy = entity.ModifiedBy, CredentialID = entity.CredentialID, ForceRollback = entity.ForceRollback }; return(model); }
public static EntitySignatureModel ToModel(this EntitySignatureViewModel model) { if (model == null) { return(null); } var entity = new EntitySignatureModel { EntitySignatureId = model.EntitySignatureId, SignatureId = model.SignatureId, SignatureTypeId = model.SignatureTypeId, EntityId = model.EntityId, EntityTypeId = model.EntityTypeId, SignatureBlob = Convert.FromBase64String(model.SignatureBlob), IsActive = model.IsActive, ModifiedOn = model.ModifiedOn, ModifiedBy = model.ModifiedBy, CredentialID = model.CredentialID, ForceRollback = model.ForceRollback }; return(entity); }
public Response <EntitySignatureModel> AddSignature(EntitySignatureModel entitySignature) { return(AddSignatureFromBlob(entitySignature.SignatureBlob, entitySignature.IsActive, entitySignature.ModifiedOn)); }
public IHttpActionResult AddSignature(EntitySignatureModel entitySignature) { return(new HttpResult <Response <EntitySignatureModel> >(eSignatureDataProvider.AddSignature(entitySignature), Request)); }
public Response <EntitySignatureModel> UpdateEntitySignature(EntitySignatureModel entitySignature) { return(_eSignatureService.UpdateEntitySignature(entitySignature)); }
public Response <EntitySignatureModel> AddEntitySignature(EntitySignatureModel entitySignature) { return(_eSignatureService.AddEntitySignature(entitySignature)); }
public IHttpActionResult AddSignature(EntitySignatureModel entitySignature) { return(new HttpResult <Response <EntitySignatureModel> >(_eSignatureRuleEngine.AddSignature(entitySignature), Request)); }