public bool DirectorsignatureUpload(DirectorSignatureObj entity) { try { if (entity == null) { return(false); } var user = _serverRequest.UserDataAsync().Result; var Category = _dataContext.deposit_customerdirectors.Where(a => a.DirectorId == entity.DirectorId && a.CustomerId == entity.CustomerId).FirstOrDefault(); if (Category != null) { Category.SignatureUpload = entity.SignatureImg; Category.UpdatedBy = user.UserName; Category.UpdatedOn = DateTime.Now; } var response = _dataContext.SaveChanges() > 0; return(response); } catch (Exception ex) { throw new Exception(ex.Message); } }
public bool DirectorsignatureUpload(byte[] image, DirectorSignatureObj entity) { throw new NotImplementedException(); }