public EntityResponse <ProjectOwner> GetByProjectCode(string code) { EntityResponse <ProjectOwner> entiyResponse = new EntityResponse <ProjectOwner>(); try { entiyResponse.Entity = _repository.Get(t => t.ProjectInfo.ProjectCode == code).FirstOrDefault(); entiyResponse.SetStatus(ResponseCode.SUCCESS); return(entiyResponse); } catch (Exception) { entiyResponse.SetStatus(ResponseCode.SYSTEM_ERROR); return(entiyResponse); } }