Beispiel #1
0
        public async Task <ActionResult> AddFavouriteCompany(FavouriteViewModel favourite)
        {
            bool result = await _companyManager.AddFavourite(favourite);

            if (result)
            {
                return(Ok(new ResponseModel {
                    Status = "ok", Message = "Added company to favourite list"
                }));
            }


            return(BadRequest());
        }