Example #1
0
        public string GetProfilePhoto()
        {
            string loggedInuserid = UserIdentity;

            if (!string.IsNullOrEmpty(loggedInuserid))
            {
                var empdetail = _employeeDetailsService.GetEmployeeDetailsById(int.Parse(loggedInuserid));
                if (empdetail != null)
                {
                    byte[] imageBites = empdetail.ProfilePhoto;
                    return(Base64EncodeBytes(imageBites));
                }
            }
            return(string.Empty);
        }
 // GET api/<controller>/5 Me Section
 public EmployeeDetailsModel Get(int id)
 {
     return(_employeeDetailsService.GetEmployeeDetailsById(int.Parse(UserIdentity)));
 }